package com.jedis;

import com.fadis.client.Ladis;
import com.fadis.server.FadisServer;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        FadisServer.init("/Users/cowthan/Desktop/ws2021-3/fadis/aof/aof.log");
//        FadisServer.start(6796);

        String r = Ladis.set("str1", "v1");
        System.out.println("set返回：" + r);
        String str1 = Ladis.get("str1");
        System.out.println("str1  ==> " + str1);

        long r2 = Ladis.rpush("list1", "v1", "v2", "v3");
        System.out.println("rpush返回：" + r2);
        List<String> list1 = Ladis.lrange("list1", 0, -1);
        System.out.println("list1  ==> " + list1);
    }
}
